home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
- Path: bunyip.cc.uq.oz.au!un!news
- From: al012@svtstu.seqeb.gov.au (Anthony Lee)
- Subject: (Summary of response) Re: File descriptor equivalent of fflush?
- X-Nntp-Posting-Host: 147.209.150.100
- Message-ID: <DLytFp.Dp5@un.seqeb.gov.au>
- Sender: news@un.seqeb.gov.au (USENET News System)
- Organization: Your Organization
- X-Newsreader: WinVN 0.93.14
- References: <DLxHsx.7Ko@un.seqeb.gov.au>
- Mime-Version: 1.0
- Date: Mon, 29 Jan 1996 23:04:36 GMT
-
- In article <DLxHsx.7Ko@un.seqeb.gov.au>, al012@svtstu.seqeb.gov.au says...
- >
- >Dear all,
- >
- >I am trying to find an equivalent of fflush for file descriptors
- >in ULTRIX and OSF.
- >
-
- Many thanks to all those people who send me replies.
- Two people told me that I don't need to flush because
- read and write are not buffered.
-
- But then the man pages for write on ULTRIX had this
-
- >By default, write does asynchronous writes. That is, after the data is
- >written to a buffer cache, control returns to the program. The actual
- >write to a device takes place after control returns. However, if you
- >use an open or fcntl call to open a file for synchronous writes, control
- >does not return to the program until after the buffer cache has been
- >written to the device.
-
- Several people suggested that I use fsync but be aware that on
- ULTRIX fsync will flush all buffers.
-
- --
- Anthony Lee These are my opinions and not SEQEB.
- SEQEB
- 150 Charlotte Street ..-- __o
- Brisbane ....-- _ \<,_
- Qld 4000 ____ (_)/ (_)
- Australia
- voice:+61 7 3407 4541 Death to the Daleks!!!!
- fax: +61 7 3407 4607
- email: AL012@svtstu.seqeb.gov.au
-
-